<template>
  <div>
    <h1>App</h1>

    <button @click="num++">{{ num }}</button>
    <button @click=" money++">{{ money }}</button>

  </div>
</template>
<script setup>
import { computed, ref, watch } from 'vue';

const num = ref(10);
const money = ref(100);

watch([num, money], (newValue, oldValue) => {
  console.log(newValue, oldValue);
});

// watch(num, (newValue, oldValue) => {
//   console.log(newValue, oldValue);
// });




</script>
<style>
div {
  border: solid;
  padding: 10px;
}
</style>